package com.hdoit.ares.logical.advertisement.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Transient;

import com.tennetcn.common.message.ModelBase;
/**
 * @author      yujinhui
 * @email       
 * @createtime  2018年03月13日 19:24:24
 * @comment
 */
@Entity
@Table(name="advertisement_item")
public class Advertisement extends ModelBase{
    //主键id
    @Id
    @Column(name="id")
    private String id;

    //商家id
    @Column(name="businessId")
    private String businessId;

    //广告位id
    @Column(name="adLocationId")
    private String adLocationId;

    //图片地址
    @Column(name="imgUrl")
    private String imgUrl;

    //外部链接
    @Column(name="href")
    private String href;

    //开始日期
    @Column(name="startTime")
    private Date startTime;

    //结束日期
    @Column(name="endTime")
    private Date endTime;

    //点击次数
    @Column(name="clickCount")
    private int clickCount;

    //是否开启
    @Column(name="isOpen")
    private String isOpen;

    //联系人
    @Column(name="linkman")
    private String linkman;

    //联系人email
    @Column(name="email")
    private String email;

    //联系人电话
    @Column(name="phone")
    private String phone;

    //创建人id
    @Column(name="createUserId")
    private String createUserId;

    //创建人
    @Column(name="createUserName")
    private String createUserName;

    //创建时间
    @Column(name="createTime")
    private Date createTime;

    //广告名称
    @Column(name="adName")
    private String adName;
    
    //修改人id
    @Column(name="modifyUserId")
    private String modifyUserId;
    
    //修改人名字
    @Column(name="modifyUserName")
    private String modifyUserName;
    
    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;
    
    //广告位置
    @Transient
    private String locationName;

    public String getId(){
        return this.id;
    }
    public void setId(String id){
         this.id=id;
    }

    public String getBusinessId(){
        return this.businessId;
    }
    public void setBusinessId(String businessId){
         this.businessId=businessId;
    }

    public String getAdLocationId(){
        return this.adLocationId;
    }
    public void setAdLocationId(String adLocationId){
         this.adLocationId=adLocationId;
    }

    public String getImgUrl(){
        return this.imgUrl;
    }
    public void setImgUrl(String imgUrl){
         this.imgUrl=imgUrl;
    }

    public String getHref(){
        return this.href;
    }
    public void setHref(String href){
         this.href=href;
    }

    public Date getStartTime(){
        return this.startTime;
    }
    public void setStartTime(Date startTime){
         this.startTime=startTime;
    }

    public Date getEndTime(){
        return this.endTime;
    }
    public void setEndTime(Date endTime){
         this.endTime=endTime;
    }

    public int getClickCount(){
        return this.clickCount;
    }
    public void setClickCount(int clickCount){
         this.clickCount=clickCount;
    }

    public String getIsOpen(){
        return this.isOpen;
    }
    public void setIsOpen(String isOpen){
         this.isOpen=isOpen;
    }

    public String getLinkman(){
        return this.linkman;
    }
    public void setLinkman(String linkman){
         this.linkman=linkman;
    }

    public String getEmail(){
        return this.email;
    }
    public void setEmail(String email){
         this.email=email;
    }

    public String getPhone(){
        return this.phone;
    }
    public void setPhone(String phone){
         this.phone=phone;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getCreateTime(){
        return this.createTime;
    }
    public void setCreateTime(Date createTime){
         this.createTime=createTime;
    }

    public String getAdName(){
        return this.adName;
    }
    public void setAdName(String adName){
         this.adName=adName;
    }
	public String getModifyUserId() {
		return modifyUserId;
	}
	public void setModifyUserId(String modifyUserId) {
		this.modifyUserId = modifyUserId;
	}
	public String getModifyUserName() {
		return modifyUserName;
	}
	public void setModifyUserName(String modifyUserName) {
		this.modifyUserName = modifyUserName;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public String getLocationName() {
		return locationName;
	}
	public void setLocationName(String locationName) {
		this.locationName = locationName;
	}
	
}